package com.qfedu.lc.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 7.用户钱包变动表
 * </p>
 *
 * @author wgz
 * @since 2024-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_money_log")
public class MoneyLog implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户表id
     */
    private Integer userId;

    /**
     * 爱贝余额
     */
    private Integer money;

    /**
     * 类型 1增加 2减少
     */
    private Integer type;

    /**
     * 变化的原因 充值 签到 等级等级 
     */
    private String flag;

    /**
     * 描述
     */
    private String info;

    /**
     * 创建时间
     */
    private Date ctime;


    public MoneyLog() {
    }

    public MoneyLog(Integer userId, Integer money, Integer type, String flag, String info, Date ctime) {
        this.userId = userId;
        this.money = money;
        this.type = type;
        this.flag = flag;
        this.info = info;
        this.ctime = ctime;
    }
}
